<script setup>
import props from './props.js'
defineOptions({
  name: 'LeeCard',
})
defineProps(props)
</script>

<template>
  <div class="lee-card" :style="width ? { width: width + 'px' } : {}">
    <!-- 图片卡片 -->
    <div
      class="lee-card-img"
      :style="imgHeight ? { height: imgHeight + 'px' } : {}"
    >
      <img :src="imgSrc" alt="imgCard" />
    </div>
    <!-- 卡片描述 -->
    <div v-if="summary" class="lee-card-summary">
      {{ summary }}
    </div>
    <div v-else class="lee-card-summary">
      <slot />
    </div>
    <div v-if="$slots.footer" class="lee-card-footer">
      <slot name="footer" />
    </div>
  </div>
</template>
